//
//  LoginTextField.h
//  WeiYiMei
//
//  Created by 李叶夫 on 2019/4/14.
//  Copyright © 2019年 liyefu. All rights reserved.
//

#import "ANBaseView.h"
#import "ANGradientButton.h"

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    LoginTextFieldLoginTel,
    LoginTextFieldLoginPsd,
    LoginTextFieldFindTel,
    LoginTextFieldFindCode,
    LoginTextFieldFindPsd,
    LoginTextFieldFindPsdAgain
} LoginTextFieldType;

typedef void(^eyeHandle)(BOOL open);
typedef void(^getCodeHandle)(ANGradientButton *sender);

@interface LoginTextField : ANBaseView

@property (nonatomic, assign) LoginTextFieldType type;

@property (nonatomic, strong) UITextField *textField;

@property (nonatomic, assign) UIKeyboardType keyboardType;

@property (nonatomic, strong) ANGradientButton *rightView;

@property (nonatomic, copy) eyeHandle eyeHandle;

@property (nonatomic, copy) getCodeHandle getCodeHandle;

@end

NS_ASSUME_NONNULL_END
